package entity

import "time"

type UserCoupon struct {
	ID        int       `gorm:"column:id;PRIMARY_KEY"` 
	UserId    int       `gorm:"column:user_id"`
	CouponId  int       `gorm:"column:coupon_id"`
	State     int       `gorm:"column:state"`
	Invitee   int       `gorm:"column:invitee"`
	ExpiredAt time.Time `gorm:"column:expired_at"`
	CreatedAt time.Time `gorm:"column:created_at"`
}

func (UserCoupon) TableName() string {
	return "l_user_coupon"
}
